package com.group9.service;

import com.group9.dto.CommentMessageInfo;
import com.group9.dto.CommentMessages;
import com.group9.pojo.CommentMessage;

import java.util.List;

/**
 * Created by Lcouncillor on 2020/6/9.
 */
public interface CommentMessageService {

    List<CommentMessageInfo> showAllMessage(String receiverId);

    List<CommentMessages> showReadedMessage(String receiverId);

    /**
     * 查询所有未读评论消息
     * @param receiverId
     * @return
     */
    List<CommentMessages> showNoReadMessage(String receiverId);

    Integer addCommentMessage(CommentMessage commentMessage);

    /**
     * 改变消息状态，标记为已读
     * @param
     * @return
     */
    Integer saveCommentMessageStatus(String commentId, String userId);

    Integer deleteMessage(String id);


}
